package security.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import security.entity.YxLogin;
import security.mapper.YxLoginMapper;
import security.service.IYxLoginService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 登录信息表 服务实现类
 * </p>
 *
 * @author liyp
 * @since 2020-01-08
 */
@Service
public class YxLoginServiceImpl extends ServiceImpl<YxLoginMapper, YxLogin> implements IYxLoginService {


    @Override
    public YxLogin selectByCode(String code) {
        return this.getOne(new QueryWrapper<YxLogin>().eq(true,"name",code));
    }
}
